package com.cqie.mapper.user;

import com.cqie.dto.user.DoctorInfoDto;
import com.cqie.entity.DoctorInfo;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author 不吃海鲜
 * @since 2024-11-25
 */
public interface DoctorInfoMapper extends BaseMapper<DoctorInfo> {
    /**
     * 根据医生id获取医生信息
     * @param doctorId
     * @return
     */
    DoctorInfo getDoctorInfo(Integer doctorId);

    /**
     * 更新医生信息
     * @param doctorInfo
     * @return
     */
    Boolean updateDoctorInfoByDoctorId(DoctorInfo doctorInfo);

    /**
     * 根据 doctorId 查询 doctorName
     * @param doctorId
     * @return
     */
    String getDoctorNameByDoctorId(Integer doctorId);

    /**
     * 根据医生id获取医生信息
     * @param doctorId
     * @return
     */
    DoctorInfo selectByDoctorId(Integer doctorId);


    /**
     * 查询科室下的医生信息
     * @param departmentCode
     * @return
     */
    List<DoctorInfoDto> queryDoctorInfoUnderDepartment(String departmentCode);
}
